<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
  <title>H+移动工作平台 - 帮助与反馈</title>
  <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
  <link rel="stylesheet" href="../css/styles.css">
</head>
<body>
  <div class="device-container">
    <!-- 状态栏 -->
    <div class="status-bar">
      <div class="status-bar-left">
        <span class="time">9:41</span>
      </div>
      <div class="status-bar-right">
        <i class="fas fa-signal signal"></i>
        <i class="fas fa-wifi wifi"></i>
        <i class="fas fa-battery-full battery"></i>
      </div>
    </div>

    <!-- 导航栏 -->
    <div class="nav-bar">
      <div class="nav-left">
        <a href="settings.html"><i class="fas fa-arrow-left"></i></a>
      </div>
      <div class="nav-title">帮助与反馈</div>
      <div class="nav-right"></div>
    </div>

    <!-- 应用内容 -->
    <div class="app-content">
      <!-- 选项卡 -->
      <div class="flex border-b border-gray-200 mx-4 mt-4">
        <button id="tab-faq" class="flex-1 py-2 text-center border-b-2 border-blue-500 text-blue-500 font-medium">常见问题</button>
        <button id="tab-feedback" class="flex-1 py-2 text-center text-gray-500">意见反馈</button>
      </div>

      <!-- 常见问题内容 -->
      <div id="faq-content" class="p-4">
        <!-- 搜索栏 -->
        <div class="search-bar mb-4">
          <i class="fas fa-search search-icon"></i>
          <input type="text" class="search-input" placeholder="搜索问题">
        </div>

        <!-- 问题分类 -->
        <div class="grid grid-cols-3 gap-3 mb-4">
          <div class="bg-blue-50 rounded-lg p-3 text-center">
            <i class="fas fa-user-circle text-blue-500 text-xl mb-1"></i>
            <div class="text-xs">账号问题</div>
          </div>
          <div class="bg-green-50 rounded-lg p-3 text-center">
            <i class="fas fa-wallet text-green-500 text-xl mb-1"></i>
            <div class="text-xs">财务问题</div>
          </div>
          <div class="bg-purple-50 rounded-lg p-3 text-center">
            <i class="fas fa-laptop text-purple-500 text-xl mb-1"></i>
            <div class="text-xs">资产问题</div>
          </div>
          <div class="bg-orange-50 rounded-lg p-3 text-center">
            <i class="fas fa-box text-orange-500 text-xl mb-1"></i>
            <div class="text-xs">物资问题</div>
          </div>
          <div class="bg-red-50 rounded-lg p-3 text-center">
            <i class="fas fa-bug text-red-500 text-xl mb-1"></i>
            <div class="text-xs">故障报修</div>
          </div>
          <div class="bg-gray-50 rounded-lg p-3 text-center">
            <i class="fas fa-ellipsis-h text-gray-500 text-xl mb-1"></i>
            <div class="text-xs">其他问题</div>
          </div>
        </div>

        <!-- 热门问题 -->
        <div class="card mb-4">
          <div class="card-header">
            <span>热门问题</span>
          </div>
          <div class="card-body p-0">
            <a href="#" class="list-item">
              <div class="flex items-center">
                <i class="fas fa-question-circle text-blue-500 mr-3"></i>
                <span>如何修改个人信息？</span>
              </div>
              <i class="fas fa-chevron-right text-gray-400"></i>
            </a>
            <a href="#" class="list-item">
              <div class="flex items-center">
                <i class="fas fa-question-circle text-blue-500 mr-3"></i>
                <span>忘记密码怎么办？</span>
              </div>
              <i class="fas fa-chevron-right text-gray-400"></i>
            </a>
            <a href="#" class="list-item">
              <div class="flex items-center">
                <i class="fas fa-question-circle text-blue-500 mr-3"></i>
                <span>如何申请报销？</span>
              </div>
              <i class="fas fa-chevron-right text-gray-400"></i>
            </a>
            <a href="#" class="list-item">
              <div class="flex items-center">
                <i class="fas fa-question-circle text-blue-500 mr-3"></i>
                <span>如何查看审批进度？</span>
              </div>
              <i class="fas fa-chevron-right text-gray-400"></i>
            </a>
            <a href="#" class="list-item">
              <div class="flex items-center">
                <i class="fas fa-question-circle text-blue-500 mr-3"></i>
                <span>如何申领物资？</span>
              </div>
              <i class="fas fa-chevron-right text-gray-400"></i>
            </a>
          </div>
        </div>

        <!-- 常见问题 -->
        <div class="card mb-4">
          <div class="card-header">
            <span>账号问题</span>
          </div>
          <div class="card-body p-0">
            <a href="#" class="list-item">
              <div class="flex items-center">
                <i class="fas fa-question-circle text-blue-500 mr-3"></i>
                <span>如何修改密码？</span>
              </div>
              <i class="fas fa-chevron-right text-gray-400"></i>
            </a>
            <a href="#" class="list-item">
              <div class="flex items-center">
                <i class="fas fa-question-circle text-blue-500 mr-3"></i>
                <span>如何绑定手机号？</span>
              </div>
              <i class="fas fa-chevron-right text-gray-400"></i>
            </a>
            <a href="#" class="list-item">
              <div class="flex items-center">
                <i class="fas fa-question-circle text-blue-500 mr-3"></i>
                <span>如何进行实名认证？</span>
              </div>
              <i class="fas fa-chevron-right text-gray-400"></i>
            </a>
          </div>
        </div>

        <!-- 联系客服 -->
        <div class="card mb-4">
          <div class="card-header">
            <span>联系客服</span>
          </div>
          <div class="card-body">
            <div class="flex justify-between items-center mb-3">
              <div class="flex items-center">
                <i class="fas fa-phone text-blue-500 mr-3"></i>
                <span>客服电话</span>
              </div>
              <a href="tel:400-123-4567" class="text-blue-500">400-123-4567</a>
            </div>
            <div class="flex justify-between items-center mb-3">
              <div class="flex items-center">
                <i class="fas fa-envelope text-blue-500 mr-3"></i>
                <span>客服邮箱</span>
              </div>
              <a href="mailto:support@hplus.com" class="text-blue-500">support@hplus.com</a>
            </div>
            <div class="flex justify-between items-center">
              <div class="flex items-center">
                <i class="fas fa-comment-dots text-blue-500 mr-3"></i>
                <span>在线客服</span>
              </div>
              <a href="#" class="text-blue-500">立即咨询</a>
            </div>
          </div>
        </div>
      </div>

      <!-- 意见反馈内容 -->
      <div id="feedback-content" class="p-4 hidden">
        <form>
          <!-- 反馈类型 -->
          <div class="card mb-4">
            <div class="card-header">
              <span>反馈类型</span>
              <span class="text-red-500 text-sm">*必选</span>
            </div>
            <div class="card-body">
              <div class="grid grid-cols-2 gap-3">
                <div class="flex items-center">
                  <input type="radio" id="type-bug" name="feedback-type" class="mr-2">
                  <label for="type-bug">功能异常</label>
                </div>
                <div class="flex items-center">
                  <input type="radio" id="type-suggestion" name="feedback-type" class="mr-2">
                  <label for="type-suggestion">功能建议</label>
                </div>
                <div class="flex items-center">
                  <input type="radio" id="type-experience" name="feedback-type" class="mr-2">
                  <label for="type-experience">体验问题</label>
                </div>
                <div class="flex items-center">
                  <input type="radio" id="type-other" name="feedback-type" class="mr-2">
                  <label for="type-other">其他问题</label>
                </div>
              </div>
            </div>
          </div>

          <!-- 问题描述 -->
          <div class="card mb-4">
            <div class="card-header">
              <span>问题描述</span>
              <span class="text-red-500 text-sm">*必填</span>
            </div>
            <div class="card-body">
              <textarea class="form-control" rows="4" placeholder="请详细描述您遇到的问题或建议..." required></textarea>
              <div class="text-xs text-gray-500 mt-2">请尽量详细描述问题发生的场景、步骤和现象，以便我们更好地解决问题。</div>
            </div>
          </div>

          <!-- 上传截图 -->
          <div class="card mb-4">
            <div class="card-header">
              <span>上传截图</span>
              <span class="text-gray-500 text-sm">选填</span>
            </div>
            <div class="card-body">
              <div class="flex flex-wrap">
                <div class="w-20 h-20 border border-dashed border-gray-300 rounded flex items-center justify-center mr-2 mb-2">
                  <i class="fas fa-plus text-gray-400"></i>
                </div>
                <div class="text-xs text-gray-500 mt-2 w-full">
                  最多上传3张图片，每张不超过5MB
                </div>
              </div>
            </div>
          </div>

          <!-- 联系方式 -->
          <div class="card mb-4">
            <div class="card-header">
              <span>联系方式</span>
              <span class="text-gray-500 text-sm">选填</span>
            </div>
            <div class="card-body">
              <div class="form-group">
                <input type="text" class="form-control" placeholder="请输入您的手机号码">
              </div>
              <div class="form-group mb-0">
                <input type="email" class="form-control" placeholder="请输入您的邮箱">
              </div>
              <div class="text-xs text-gray-500 mt-2">
                留下您的联系方式，以便我们及时反馈处理结果
              </div>
            </div>
          </div>

          <!-- 提交按钮 -->
          <button type="submit" class="btn btn-primary w-full mb-4">提交反馈</button>
        </form>
      </div>
    </div>

    <!-- 底部标签栏 -->
    <div class="tab-bar">
      <a href="home.html" class="tab-item">
        <i class="fas fa-home tab-icon"></i>
        <span>首页</span>
      </a>
      <a href="asset.html" class="tab-item">
        <i class="fas fa-laptop tab-icon"></i>
        <span>资产</span>
      </a>
      <a href="finance.html" class="tab-item">
        <i class="fas fa-wallet tab-icon"></i>
        <span>财务</span>
      </a>
      <a href="material.html" class="tab-item">
        <i class="fas fa-box tab-icon"></i>
        <span>物资</span>
      </a>
      <a href="profile.html" class="tab-item active">
        <i class="fas fa-user tab-icon"></i>
        <span>我的</span>
      </a>
    </div>
  </div>

  <script>
    // 选项卡切换
    document.getElementById('tab-faq').addEventListener('click', function() {
      document.getElementById('tab-faq').classList.add('border-b-2', 'border-blue-500', 'text-blue-500');
      document.getElementById('tab-feedback').classList.remove('border-b-2', 'border-blue-500', 'text-blue-500');
      document.getElementById('tab-feedback').classList.add('text-gray-500');
      document.getElementById('faq-content').classList.remove('hidden');
      document.getElementById('feedback-content').classList.add('hidden');
    });

    document.getElementById('tab-feedback').addEventListener('click', function() {
      document.getElementById('tab-feedback').classList.add('border-b-2', 'border-blue-500', 'text-blue-500');
      document.getElementById('tab-faq').classList.remove('border-b-2', 'border-blue-500', 'text-blue-500');
      document.getElementById('tab-faq').classList.add('text-gray-500');
      document.getElementById('feedback-content').classList.remove('hidden');
      document.getElementById('faq-content').classList.add('hidden');
    });
  </script>
</body>
</html> 